import App from './App'
import uviewPlus from 'uview-plus'
import { createPinia } from 'pinia'
import { createUnistorage } from 'pinia-plugin-unistorage'

import * as http from './api/apiList'
import '/mock/mock'
import 'remixicon/fonts/remixicon.css'
// import "./static/iconfont/iconfont.css"
const pinia = createPinia()
pinia.use(createUnistorage())

import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  app.use(uviewPlus)
  app.use(pinia)
  app.config.globalProperties.$http = http
  return {
    app
  }
}